####################################################################
#
# HoI - Africa
#
# LIMIT:  552000 - 601999
# C.O.R.E. v0.7 transition to CSV completed
####################################################################

#########################################################################
#  Abdin Palace Coup - Italian invasion
#########################################################################
event = {  
	id = 552000
	random = no
	country = EGY

	trigger = {
		exists = ENG
		exists = ITA
		OR = {
			control = { province = 1090 data = ITA } #Matruh in Italian hands
			control = { province = 1198 data = ITA } #Bur Sudan in Italian hands
			control = { province = 1199 data = ITA } #Kassala in Italian hands
		}
		# puppet = { country = SYR country = VIC } #Syria is Vichy Puppet, removed for test
#		OR = {
#			alliance = { country = GRE country = GER } #Axis Greece
#			alliance = { country = TUR country = GER } #Axis Turkey
#			 any posible axis country controls Athens
#			control = { province = 891 data = ITA } # Italians in Athens
#			control = { province = 891 data = GER } # Germans in Athens 
#			control = { province = 891 data = BUL } # Bulgaria in Athens
#			control = { province = 891 data = ROM } # Romania in Athens
#			control = { province = 891 data = HUN } # Hungary in Athens
#			control = { province = 891 data = SPA } # Nat.Spain in Athens
#			}
		NOT = {
			OR = {
				alliance = { country = GER country = EGY } 
				alliance = { country = SOV country = EGY } 
				war = { country = EGY country = ENG }
				}
			}
		}

	name = CEVTNAME_552000
	desc = CEVTDESC_552000
	style = 0
	
		
	date = { day = 1 month = january year = 1937 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = { 
		name = CEVTACTA_552000
		command = { type = headofstate which = 96021 }
		command = { type = headofgovernment which = 96022 }
		command = { type = foreignminister which = 96023 }
		command = { type = armamentminister which = 96024 }
		command = { type = ministerofsecurity which = 96025 }
		command = { type = ministerofintelligence which = 96006 }
		command = { type = chiefofstaff which = 96007 }
		command = { type = chiefofarmy which = 96008 }
		command = { type = chiefofnavy which = 96009 }
		command = { type = chiefofair which = 96010 } 
		command = { type = leave_alliance }
		command = { type = alliance which = ENG } 
		command = { type = sleepevent which = 552001 } 
		command = { type = sleepevent which = 552002 } 
          }

	action_b = { 
		name = CEVTACTB_552000
		command = { type = leave_alliance }
		command = { type = end_access which = ENG }
		command = { type = war which = ENG }
		command = { type = alliance which = ITA } 
		command = { type = dissent value = 20 }
	}
}

#########################################################################
#  Abdin Palace Coup - Jerusalem lost to the Allies (Ahistorical) (by OHGamer)
#########################################################################
event = {  
	id = 552001
	random = no
	country = EGY
	
        trigger = {
		NOT = {
	   		OR = {
					control = { province = 1205 data = ENG }
					alliance = { country = GER country = EGY } 
					alliance = { country = SOV country = EGY } 
					war = { country = EGY country = ENG }
					}
			}
		}
	
        name = CEVTNAME_552000
	desc = CEVTDESC_552001
	style = 0

		
	date = { day = 1 month = january year = 1937 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = { 
		name = CEVTACTA_552000 # same text as 552000
		command = { type = headofstate which = 96021 }
		command = { type = headofgovernment which = 96022 }
		command = { type = foreignminister which = 96023 }
		command = { type = armamentminister which = 96024 }
		command = { type = ministerofsecurity which = 96025 }
		command = { type = ministerofintelligence which = 96006 }
		command = { type = chiefofstaff which = 96007 }
		command = { type = chiefofarmy which = 96008 }
		command = { type = chiefofnavy which = 96009 }
		command = { type = chiefofair which = 96010 } 
		command = { type = dissent value = 20 }
		command = { type = leave_alliance }
		command = { type = alliance which = ENG }
		command = { type = sleepevent which = 552000 } 
		command = { type = sleepevent which = 552002 } 
         }
	action_b = { 
		name = CEVTACTB_552000
		command = { type = leave_alliance }
		command = { type = end_access which = ENG }
		command = { type = war which = ENG }
		command = { type = alliance which = GER } 
		command = { type = dissent value = 20 }
	}
}


#########################################################################
#  Anglo-Egyptian Treaty of Defense Activated
#########################################################################

event = {  
            id = 552002
            random = no
            country = EGY

            trigger = {
			exists = ENG
            		OR = {
                        	war = { country = EGY country = GER }
	                        war = { country = EGY country = TUR }
	                        war = { country = EGY country = ITA }
	                        war = { country = EGY country = GRE }
 		                }
			NOT = {
				OR = {
					alliance = { country = GER country = EGY } 
					alliance = { country = SOV country = EGY } 
					war = { country = EGY country = ENG }
					}
				}
	               }     

            name = CEVTNAME_552002
            desc = CEVTDESC_552002
            style = 0

            date = { day = 1 month = january year = 1936 }
            offset = 5
            deathdate = { day = 30 month = december year = 1947 }

            action_a = { 
                        name = CEVTACTA_552002
		command = { type = leave_alliance }
                        command = { type = alliance which = ENG } 
                        command = { type = dissent value = -20 }
         	 }

            action_b = { 

                        name = CEVTACTB_552002
                        command = {  }
          	}
}


#########################################################################
#  Creation of a Ethiopian Vassal state under Italian control (by Generalisimo)
#########################################################################
event = { 
	id = 552004
	random = no
	country = ETH

	#triggered by ITA 462007 B

	name = CEVTNAME_552004
	desc = CEVTDESC_552004
	style = 0
	
	action_a = {
		name = CEVTACTA_552004
		command = { type = alignment which = fascist value = 200 }
		command = { type = headofstate which = 65011 }
		command = { type = headofgovernment which = 65012 }
		command = { type = foreignminister which = 65013 }
		command = { type = armamentminister which = 65014 }
		command = { type = ministerofsecurity which = 65015 }
		command = { type = ministerofintelligence which = 65016 }
		command = { type = chiefofstaff which = 65017 }
		command = { type = chiefofarmy which = 65018 }
		command = { type = chiefofnavy which = 65019 }
		command = { type = chiefofair which = 65020 }
		command = { type = dissent value = 5 }
		command = { type = access which = ITA }
		}
}

#########################################################################
#  Ethiopian Revolt (by Generalisimo)
#########################################################################
event = { 
	id = 552005
	random = no
	country = ETH
	persistent = yes

	# triggered by:
	# 462008 to 462014 - Ethiopian Freedom Fighters for 1937
	# 462040 to 462046 - Ethiopian Freedom Fighters for 1938
	# 462047 to 462053 - Ethiopian Freedom Fighters for 1939
	# 462054 to 462060 - Ethiopian Freedom Fighters for 1940
	# 462061 to 462067 - Ethiopian Freedom Fighters for 1941
	# 462068 to 462074 - Ethiopian Freedom Fighters for 1942

	name = CEVTNAME_552005
	desc = CEVTDESC_552005
	style = 0
	
	action_a = {
		name = CEVTACTA_552005
		command = { type = add_division which = militia }
		command = { type = add_division which = militia }
		command = { type = add_division which = militia }
		command = { type = war which = ITA }
	}
}

#########################################################################
#  Italian East Africa Conquered! (by Generalisimo)
#########################################################################
event = { 
	id = 552006
	random = no
	country = ETH

	trigger = {
		NOT = {
			alliance = { country = ETH  country = ENG } # not allied
			}
		war = { country = ETH  country = ITA }
		control = { province = 1299 data = ETH } # Obbia
		control = { province = 1302 data = ETH } # Mogadishu
		control = { province = 1285 data = ETH } # Asmara
		#control = { province = 1301 data = ETH } # Kismayo
		}

	name = CEVTNAME_552006
	desc = CEVTDESC_552006
	style = 0

	date = { day = 1 month = april year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		name = CEVTACTA_552006
		command = { type = trigger which = 462015 } #ITA
		}
	action_b = {
		name = CEVTACTB_552006
		command = {  }
		}
}

#########################################################################
#  Italian response to our offer of peace (by Generalisimo)
#  552007 to 552010
#########################################################################
event = { 
	id = 552007
	random = no
	country = ETH

	# 462015 ITA

	name = CEVTNAME_552007
	desc = CEVTDESC_552007
	style = 0
	
	action_a = {
		name = CEVTACTA_552007
		command = { type = addcore which = 1299 }
		command = { type = addcore which = 1302 }
		command = { type = addcore which = 1285 }
		#command = { type = peace which = ITA value = 1 }
		command = { type = dissent value = -20 }
		}
}

event = { 
	id = 552008
	random = no
	country = ETH

	# 462015 ITA

	name = CEVTNAME_552008
	desc = CEVTDESC_552008
	style = 0
	
	action_a = {
		name = CEVTACTA_552008
		command = { type = addcore which = 1285 }
		#command = { type = peace which = ITA value = 0 }
		command = { type = dissent value = -20 }
		command = { type = trigger which = 462016 } #ITA
	}
	action_b = {
		name = CEVTACTB_552008
		command = { type = trigger which = 462017 } #ITA
	}
}

event = { 
	id = 552009
	random = no
	country = ETH

	# 462015 ITA

	name = CEVTNAME_552009
	desc = CEVTDESC_552009
	style = 0
	
	action_a = {
		name = CEVTACTA_552008
		command = { type = addcore which = 1299 }
		command = { type = addcore which = 1302 }
		#command = { type = peace which = ITA value = 0 }
		command = { type = dissent value = -20 }
		command = { type = trigger which = 462018 } #ITA
	}
	action_b = {
		name = CEVTACTB_552008
		command = { type = trigger which = 462019 } #ITA
	}
}

event = { 
	id = 552010
	random = no
	country = ETH

	# 462015 ITA

	name = CEVTNAME_552010
	desc = CEVTDESC_552010
	style = 0
	
	action_a = {
		name = CEVTACTA_552010
		command = {  }
	}
}

#########################################################################
#  Ethiopian demands Claims on Italian East Africa (by Generalisimo)
#########################################################################
event = { 
	id = 552011
	random = no
	country = ETH

	trigger = {
		alliance = { country = ETH  country = ENG }
		NOT = {
			alliance = { country = ETH  country = ITA }
			}
		NOT = {
			OR = {
				event = 552007 # ETH, All
				event = 462016 # ITA, Eritrea
				event = 462018 # ITA, Somaliland
				}
			}
		}

	name = CEVTNAME_552011
	desc = CEVTDESC_552011
	style = 0

	date = { day = 1 month = april year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		name = CEVTACTA_552011
		command = { type = trigger which = 272004 } #ENG 
	}
}

#########################################################################
#  UK response to our claim (by Generalisimo)
#  552012 to 552014
#########################################################################
event = { 
	id = 552012
	random = no
	country = ETH

	#triggered by ENG 272003 A

	name = CEVTNAME_552012
	desc = CEVTDESC_552012
	style = 0
	
	action_a = {
		name = CEVTACTA_552012
		command = { type = addcore which = 1299 } # Obbia
		command = { type = addcore which = 1302 } # Mogadishu
		command = { type = access which = ENG }
		command = { type = trigger which = 272006 } #ENG 
	}
	action_b = {
		name = CEVTACTB_552012
		command = { type = trigger which = 272005 } #ENG 
	}
}

event = { 
	id = 552013
	random = no
	country = ETH

	#triggered by ENG 272003 B

	name = CEVTNAME_552013
	desc = CEVTDESC_552013
	style = 0
	
	action_a = {
		name = CEVTACTA_552013
		command = { type = addcore which = 1299 } # Obbia
		command = { type = addcore which = 1302 } # Mogadishu
	}
}

event = { 
	id = 552014
	random = no
	country = ETH

	#triggered by ENG 272003 C

	name = CEVTNAME_552014
	desc = CEVTDESC_552014
	style = 0
	
	action_a = {
		name = CEVTACTA_552014
		command = {  } # none
	}
}


###############################################
# 552015 - In Memoriam, HRH King Fu`ad (by OHgamer)
###############################################
event = { 
            id = 552015
            random = no
            country = EGY

            name = CEVTNAME_552015
            desc = CEVTDESC_552015
            style = 0 

            date = { day = 1 month = february year = 1936 } 
            offset = 15
            deathdate = { day = 1 month = august year = 1936 }

            action_a = {
                        name = CEVTACTA_552015
                        command = { type = dissent value = -15 }
                        command = { type = headofstate which = 96062 } #King Faruq
                        }
}

#########################################################################
#  552016 - Creation of a Ethiopian Vassal w/Haile Selassie (by Generalisimo)
#########################################################################
event = { 
	id = 552016
	random = no
	country = ETH

	#triggered by ITA 462081

	name = CEVTNAME_552016
	desc = CEVTDESC_552016
	style = 0
	
	action_a = {
		name = CEVTACTA_552016
		command = { type = alignment which = fascist value = 200 }
		command = { type = headofstate which = 65001 } # Haile Selassie
		command = { type = headofgovernment which = 65012 }
		command = { type = foreignminister which = 65013 }
		command = { type = armamentminister which = 65014 }
		command = { type = ministerofsecurity which = 65015 }
		command = { type = ministerofintelligence which = 65016 }
		command = { type = chiefofstaff which = 65017 }
		command = { type = chiefofarmy which = 65018 }
		command = { type = chiefofnavy which = 65019 }
		command = { type = chiefofair which = 65020 }
		command = { type = dissent value = 0 }
		command = { type = access which = ITA }
		}
}

#########################################################################
#  552017 - (MOR) Independent Morocco Setup (by Fallout_Boy)
#########################################################################
event = { 
	id = 552017 # 41185
	random = no
	country = MOR
	
	#Triggered by SPA 802039 (41184)
	
	name = CEVTNAME_552017
	desc = CEVTDESC_552017
	style = 0
	
	action_a = {
		name = CEVTACTA_OK
		#command = { type = war which = SPA }
		command = { type = trigger which = 802074 } #Make SPA DoW MOR
		command = { type = add_division which = infantry when = 1009 }
		command = { type = add_division which = militia when = 1009 }
		command = { type = manpowerpool value = 50 }
		command = { type = supplies value = 5000 }
		command = { type = oilpool value = 250 }
		command = { type = steelpool value = 250 }
		command = { type = coalpool value = 250 }
		command = { type = rubberpool value = 250 }
		command = { type = province_keypoints which = 1009 value = 1 }
		command = { type = province_manpower which = 1009 value = 3 }
		command = { type = industry which = 1009 value = 2 }
		### claims on French Morocco
		command = { type = addcore which = 1006 }   
		command = { type = addcore which = 1011 }
		command = { type = addcore which = 1012 }
		command = { type = addcore which = 1022 }
		command = { type = addcore which = 1023 }
		### add event granting military access through SPR?
	}
}

#########################################################################
#  552018 - (MOR) French Morocco Joins Independent Moroccan State (by Fallout_Boy)
#########################################################################
event = { 
	id = 552018 # 41188
	random = no
	country = MOR
	
	# Triggered by FRA 432045 (41187)

	name = CEVTNAME_552018
	desc = CEVTDESC_552018
	style = 0

	action_a = {
		name = CEVTACTA_OK
		command = { type = dissent value = -5 }
		command = { type = manpowerpool value = 100 }
	}
}

############################
# Egypt
############################
############################
# 552019 (EGY)Egypt recognizes saudi annexation of Hejdaz(by Ghost_dk)
############################

event = {
	id = 552019
	random = no
	country = EGY

	trigger = {
		atwar = no
		NOT = {
			war = { country = EGY country = SAU }
			}
		}
	name = CEVTNAME_552019
	desc = CEVTDESC_552019
	style = 0

	date = { day = 6 month = may year = 1936 }

	action_a = {
		name = CEVTACTA_552019
		command = { type = dissent value = -1 }
		command = { type = trigger which = 902047 }
		}
	action_b = {
		name = CEVTACTB_552019
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 902047 }
		}
}
############################
# 552020 (EGY)Italian's support muslim causes(by Ghost_dk)
############################

event = {
	id = 552020
	random = no
	country = EGY

	# triggered by ITA 462093

	name = CEVTNAME_552020
	desc = CEVTDESC_552020
	style = 0

	action_a = {
		name = CEVTACTA_552020
		command = { type = alignment which = fascist value = 10 }
		}
}
#############################
# 552021 (EGY)Egypt admitted into the League of Nations(by Ghost_dk)
#############################

event = { 
	id = 552021
	random = no
	country = EGY

	trigger = { 
		government = democratic
		event = 552024
		}
	name = CEVTNAME_552021
	desc = CEVTDESC_552021
	style = 0

	date = { day = 26 month = may year = 1937 }

	action_a = { 
		name = CEVTACTA_552021
		command = { type = dissent value = -1 }
		command = { type = alignment which = democratic value = 15 }
		command = { type = influence value = 5 }
		}
}
#############################
# 552022 (EGY)Egyptian Armament Program(by Ghost_dk)
#############################

event = {
	id = 552022
	random = no
	country = EGY

	name = CEVTNAME_552022
	desc = CEVTDESC_552022
	style = 0

	date = { day = 18 month = november year = 1938 }

	action_a = {
		name = CEVTACTA_552022
		command = { type = supplies value = -500 }
		command = { type = steelpool value = -500 }
		command = { type = rubberpool value = -100 }
		command = { type = coalpool value = -500 }
		command = { type = gain_tech which = 3005 }
		command = { type = gain_tech which = 3006 }
		command = { type = gain_tech which = 3007 }
		command = { type = gain_tech which = 11200 }
		command = { type = gain_tech which = 11204 }
		command = { type = add_division which = fighter }
		command = { type = add_division which = destroyer }
		}
	action_b = {
		name = CEVTACTB_552022
		command = { }
		}
}
#############################
# 552023 (EGY)Uk Military mission to Egypt(by Ghost_dk)
#############################

event = {
	id = 552023
	random = no
	country = EGY

	# triggered by ENG 272116

	name = CEVTNAME_552023
	desc = CEVTDESC_552023
	style = 0	

	action_a = {
		name = CEVTACTA_552023
		command = { type = gain_tech which = 1200 }
		command = { type = gain_tech which = 14003 }
		command = { type = gain_tech which = 14008 }
		command = { type = gain_tech which = 14100 }
		}
} 
#################################
# 552024 (EGY)Montreux Conference on the Egyptian Capitulations(by Ghost_dk)
#################################

event = { 
	id = 552024
	random = no
	country = EGY

	trigger = { 
		NOT = { 
			alliance = { country = EGY country = GER }
			war = { country = ITA country = ENG }
			}
		}
	name = CEVTNAME_552024
	desc = CEVTDESC_552024
	style = 0

	date = { day = 7 month = may year = 1937 }

	action_a = {
		name = CEVTACTA_552024
		command = { type = alignment which = democratic value = 25 }
		command = { type = dissent value = -4 }
		}
}

##################################################
# 552025 - (EGY) Egypt Mobilizes
##################################################

event = { 
	id = 552025
	random = no
	country = EGY

	trigger = {
		OR = {
			atwar = ENG
			exists = PAL
			}
		}

	name = CEVTNAME_552025
	desc = CEVTDESC_552025
	style = 0

	date = { day = 1 month = january year = 1936 } 
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = CEVTACTA_OK
		command = { type = manpowerpool value = 200 }
		command = { type = province_manpower which = 1101    value = 6 } #Cairo
		command = { type = province_manpower which = 1099    value = 5 } #Alexandria
		command = { type = province_manpower which = 1100    value = 4 } #Port Said
		command = { type = province_manpower which = 1200    value = 3 } #Assuan
		command = { type = province_manpower which = 1201    value = 2 } #Sawhaj
		command = { type = province_manpower which = 1103    value = 2 } #Al Minyah
		command = { type = province_manpower which = 1202    value = 1 } #Marsa El-Alam
		command = { type = province_manpower which = 1206    value = 1 } #El Arish
		command = { type = province_manpower which = 1203    value = 1 } #Al Qusiyah
	}
}


##########################################
# 552026 - The New Roman Empire (Unhistorical)!(by MVSN)
##########################################
event = { 
id = 552026
random = no 
country = EGY 

name = CEVTNAME_552026
desc = CEVTDESC_552026
style = 0

#date = { day = 1 month = january year = 1936 }
#offset = 7
#deathdate = { day = 30 month = december year = 1947 }

action_a = {
	name = CEVTACTA_552026
	#command = { type = secedeprovince which = ITA  value = 1206 }
	command = { type = secedeprovince which = ITA  value = 1099 }
	command = { type = secedeprovince which = ITA  value = 1093 }
	command = { type = secedeprovince which = ITA  value = 1104 }
	#command = { type = secedeprovince which = ITA  value = 1201 }
	#command = { type = secedeprovince which = ITA  value = 1103 }
	command = { type = addcore which = 1102 }
	command = { type = addcore which = 1090 }
	command = { type = addcore which = 1091 }
	command = { type = addcore which = 1198 }
	command = { type = addcore which = 1199 }
	command = { type = addcore which = 1193 }
	command = { type = addcore which = 1196 }
	command = { type = addcore which = 1190 }
	command = { type = addcore which = 1191 }
	command = { type = addcore which = 1298 }
	command = { type = addcore which = 1195 }
	command = { type = access which = ENG }
	command = { type = alignment which = fascist value = 70 }
	command = { type = dissent value = 40 }
	}

}

